import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AlertController } from 'ionic-angular/components/alert/alert-controller';

/*
  Generated class for the AlertsProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class AlertsProvider {

  constructor(
    public http: HttpClient,
    public alertCtrl: AlertController) {
    console.log('Hello AlertsProvider Provider');
  }

  //简单弹出框
  public simpleAlert(content) {
    let alert = this.alertCtrl.create({
      title: '提示', 
      subTitle: content,
      buttons: ['确定']
    });
    alert.present();
  }

}
